//
//  UIColor+Extension.m
//  biz
//
//  Created by zhangfuwei on 2017/7/7.
//  Copyright © 2017年 jieshuibao. All rights reserved.
//

#import "UIColor+Extension.h"

@implementation UIColor (Extension)
+ (UIColor *)zfw_ColorWithHex:(u_int32_t)hex alpha:(CGFloat)alpha{
    
    int red = (hex & 0xFF0000) >> 16;
    int green = (hex & 0x00FF00) >> 8;
    int blue = hex & 0x0000FF ;
    
    return [UIColor colorWithRed:red/255.0 green:green/255.0 blue:blue/255.0 alpha:alpha?:1.0];
}
@end
